package com.atguigu05._super.exer3;

/**
 * ClassName: PersonTest
 * Description:
 *
 * @Author liu
 * @Create 2024/10/27 22:45
 * @Version 1.0
 */
public class CheckAccountTest {
    public static void main(String[] args) {
        CheckAccount check = new CheckAccount(1122,20000,0.045,5000);

        check.withdraw(5000);
        System.out.println("您的账户余额：" + check.getBalance());
        System.out.println("您的可透支额：" + check.getOverdraft());

        check.withdraw(17000);
        System.out.println("您的账户余额：" + check.getBalance());
        System.out.println("您的可透支额：" + check.getOverdraft());

        check.withdraw(28000);
        System.out.println("您的账户余额：" + check.getBalance());
        System.out.println("您的可透支额：" + check.getOverdraft());

    }
}
